package igor.lakienko.ru.generation.quotes.mapper;

import igor.lakienko.ru.generation.quotes.dto.StockDto;
import igor.lakienko.ru.generation.quotes.entity.StockEntity;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;

import java.util.List;

@Mapper(config = DefaultMapperConfig.class)
public interface StockMapper {

    @Mapping(target = "sentAt", ignore = true)
    StockDto stockEntityToDto(StockEntity stockEntity);

    List<StockDto> stocksEntityToDto(List<StockEntity> stockEntity);
}
